import request from '@/utils/request'
import { CHECC_API_CMS } from '@/constants/proxy'

const getWraningList = (params) => {
  return request.post(CHECC_API_CMS + '/warning/search', params)
}
const backWraning = (params) => {
  return request.put(CHECC_API_CMS + '/warning/back', params)
}
const getWraningDict = () => {
  return request.post(CHECC_API_CMS + `/dictItem/codelist`, [
    'XTGL_WARNING_GRADE', //预警等级
    'XTGL_WRANING_TYPE', //预警类型
  ])
}
const getAllUser = () => {
  return request.get(CHECC_API_CMS + `/user/getAll`)
}
export { getWraningList, backWraning, getWraningDict, getAllUser }
